package com.jeesite.modules.digitalize.entity.vo.system;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @author patronli
 * @Description: 机构部门
 * @date 2023年09月13日 10:02:45
 */
@Data
public class OfficeVo {
    public OfficeVo(String officeCode, String parentId, String officeName, String fullName) {
        this.officeCode = officeCode;
        this.parentId = parentId;
        this.officeName = officeName;
        this.fullName = fullName;
    }

    public OfficeVo(String officeCode, String parentId, String officeName, String fullName, List<OfficeVo> children) {
        this.officeCode = officeCode;
        this.parentId = parentId;
        this.officeName = officeName;
        this.fullName = fullName;
        this.children = children;
    }

    @ApiModelProperty("主键")
    String officeCode;
    @ApiModelProperty("父id")
    String parentId;
    @ApiModelProperty("机构名称")
    String officeName;
    @ApiModelProperty("机构全程")
    String fullName;
    @ApiModelProperty("子机构部门")
    List<OfficeVo> children;
}
